package cn.wolfcode.wolf2world.service;

import cn.wolfcode.wolf2world.domain.StrategyComment;
import cn.wolfcode.wolf2world.query.StrategyCommentQueryObject;
import org.springframework.data.domain.Page;
import org.springframework.util.StringUtils;

import java.util.List;

/**
 * @author 杨兴健
 * @Date 2020-08-16 21:27
 */
public interface StrategyCommentService {
    void insert(StrategyComment strategyComment);
    void update(StrategyComment strategyComment);
    void delete(String id);
    StrategyComment get(String id);
    List<StrategyComment> list();

    /**
     * 攻略评论高级查询
     * @param qo 查询条件
     * @return
     */
    Page<StrategyComment> query(StrategyCommentQueryObject qo);

    /**
    * 新增或编辑攻略评论
    * @param strategyComment
    */
    void saveOrUpdate(StrategyComment strategyComment);

}
